<template>
<div>
    父组件
    <Tes  @transfer="getUser"></Tes> 
    {{ username }}
</div>
</template>
<script>
import Tes from '@/views/system/tes/index'
export default {
  data() {
        return {
            username:'',
    };
  },
  mounted() {},
    methods: {
        getUser(msg) {
            console.log(msg);
       this.username= msg
     }
  },
    components: {
        Tes
  },
  props: {},
  watch: {},
  computed: {},
  created() {},
};
</script>
<style lang="scss" scoped>
</style>